import java.util.List;

public class vjio {
    package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

    @Mapper
    public interface UserInfoXMLMapper {
        void insert(UserInfo userInfo);
        void delect(Integer id);
        List<UserInfo> queryAllUser(String name);
        Integer insertUserByCondition(UserInfo userInfo);
        void deleteByIds(List<Integer> ids);
        @Delete("<script>" +
                "delete from userinfo where id in" +
                "<foreach collection='ids' item='id' separator=',' open='(' close=')'>" +
                "#{id}" +
                "</foreach>" +
                "</script>")
        Integer deleteUser(Integer id);
    }

}
